package org.game.netty;

import org.game.netty.oldcoder.HuanjieDecoder;
import org.game.netty.oldcoder.HuanjieEncoder;

import com.sojoys.artifact.factory.message.IMessage;

import io.netty.channel.CombinedChannelDuplexHandler;
import io.netty.handler.codec.ByteToMessageDecoder;
import io.netty.handler.codec.MessageToByteEncoder;

/**
 * 自定义加密方式的服务器编码解码处理器
 * @author wk.dai
 */
public class NettyCodec extends CombinedChannelDuplexHandler<ByteToMessageDecoder, MessageToByteEncoder<IMessage>> {

	public NettyCodec() {
		this(new HuanjieDecoder(), new HuanjieEncoder());
	}

	public NettyCodec(ByteToMessageDecoder inboundHandler,MessageToByteEncoder<IMessage> outboundHandler) {
		super(inboundHandler, outboundHandler);
	}
}
